package com.wollo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PermissionMapper {
    //查询用户的权限信息
    @Select("select permission from t_permission where pid in(select pid from t_permission_role where rid in(select rid from t_user_role where uid=#{userId}))")
    List<String> selectPermissionByUserId(Integer userId);



}
